package com.github.lmm1990.demo.controller;

import com.github.lmm1990.demo.model.view.request.app.GetAppListRequest;
import com.github.lmm1990.demo.model.view.response.app.GetAppListResponse;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 应用管理
 */
@RestController
@RequestMapping("/app/app/")
public class AppController {

    /**
     * 查询应用列表
     *
     * @param requestInfo 搜索条件
     * @return
     */
    @PostMapping("/list")
    public GetAppListResponse getAppList(@RequestBody @Validated GetAppListRequest requestInfo) {
        return new GetAppListResponse();
    }
}
